package com.example.one.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

/**
 * Copyright (C), 2017-2022, MIDOU
 * ClassName: Wallet
 * Author:   pangshu
 * Date:     2022/10/28 17:29
 * Version: 1.0
 * Description:钱包
 */
@Data
@TableName("wallet")
public class Wallet {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("balance")
    private Float balance;//余额
    @TableField("paypassword")
    private String payPassword;//支付密码

    @Version
    private Integer version;//乐观锁
    @TableField(value = "user_id")
    private Integer userId;
}
